package com.android.internal.widget;

import android.graphics.Rect;
import android.view.View;

public class DecorCaptionButton {
    private View mMaximize;
    private View mMinimize;
    private View mClose;
    private View mBack;

    private Rect mCloseRect = new Rect();      // click area of close button
    private Rect mMinimizeRect = new Rect();   // click area of min button
    private Rect mMaximizeRect = new Rect();   // click area of max button
    private Rect mBackRect = new Rect();       // click area of back button

    /**
     *  create a new DecorCaptionButton
     */
    public DecorCaptionButton() {
        mMaximize = null;
        mMinimize = null;
        mClose = null;
        mBack = null;
    }

    public View getMaximize() {
        return mMaximize;
    }

    public View getMinimize() {
        return mMinimize;
    }

    public View getClose() {
        return mClose;
    }

    public View getBack() {
        return mBack;
    }

    public Rect getMaximizeRect() {
        return mMaximizeRect;
    }
    public Rect getMinimizeRect() {
        return mMinimizeRect;
    }

    public Rect getCloseRect() {
        return mCloseRect;
    }

    public Rect getBackRect() {
        return mBackRect;
    }

    public void setMaximize(View view) {
        mMaximize = view;
    }

    public void setMinimize(View view) {
        mMinimize = view;
    }

    public void setClose(View view) {
        mClose = view;
    }

    public void setBack(View view) {
        mBack = view;
    }

    public void setMaximizeRect(Rect rect) {
        mMaximizeRect = rect;
    }

    public void setMinimizeRect(Rect rect) {
        mMinimizeRect = rect;
    }

    public void setCloseRect(Rect rect) {
        mCloseRect = rect;
    }

    public void setBackRect(Rect rect) {
        mBackRect = rect;
    }
}
